package com.itfreer.gis.map.dictionary;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 图层类型
 */
@Component
public class LayerType extends LocalDictionaryBase {

    @Override
    public String getDictionaryName() {
        return "d_layer_type";
    }

    @Override
    protected List<DictionaryEntity> getDictionarys() {
        List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
        DictionaryEntity item = new DictionaryEntity();
        item.setId("background");
        item.setCode("background");
        item.setDisplay("background");
        item.setOrder(1);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("fill");
        item.setCode("fill");
        item.setDisplay("fill");
        item.setOrder(2);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("line");
        item.setCode("line");
        item.setDisplay("line");
        item.setOrder(3);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("symbol");
        item.setCode("symbol");
        item.setDisplay("symbol");
        item.setOrder(4);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("raster");
        item.setCode("raster");
        item.setDisplay("raster");
        item.setOrder(5);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("circle");
        item.setCode("circle");
        item.setDisplay("circle");
        item.setOrder(6);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("fill-extrusion");
        item.setCode("fill-extrusion");
        item.setDisplay("fill-extrusion");
        item.setOrder(7);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("heatmap");
        item.setCode("heatmap");
        item.setDisplay("heatmap");
        item.setOrder(8);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("hillshade");
        item.setCode("hillshade");
        item.setDisplay("hillshade");
        item.setOrder(9);
        list.add(item);
        return list;
    }
}
